-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Expose the origin of exit points in zend_jit_dump_exit_info() #19700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't like to merge this information into trace dumps.
It doesn't reflect the properties of the trace, just very specific implementation details.
I think, this may be done under the special debug flag disabled by default.
@dstogov I've made the change to collect the filename/lineno only when ZEND_JIT_DEBUG_TRACE_EXIT_INFO
is set.
I find this very useful when debugging, as it's difficult to find where an exit point was created in some cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RM approval, technical review not performed
If I understand correctly this adds a new flag for JIT debugging, can you document that in the UPGRADING file?
Unfortunately I missed the notification, so it will not be in 8.5. Not a big issue. I will document the new flag in UPGRADING 👍
This shows the filename/lineno where
zend_jit_trace_get_exit_point()
was called inzend_jit_dump_exit_info()
, in debug builds:This is quite useful, since the dump doesn't generally allows to find where an exit point was created: